Optimal. Leaf size=29 \[ \frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-x \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {1150, 388, 208} \begin {gather*} \frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 388
Rule 1150
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2}{d^2-e^2 x^4} \, dx &=\int \frac {d+e x^2}{d-e x^2} \, dx\\ &=-x+(2 d) \int \frac {1}{d-e x^2} \, dx\\ &=-x+\frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 29, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {e}}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d+e x^2\right )^2}{d^2-e^2 x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.68, size = 73, normalized size = 2.52 \begin {gather*} \left [\sqrt {\frac {d}{e}} \log \left (\frac {e x^{2} + 2 \, e x \sqrt {\frac {d}{e}} + d}{e x^{2} - d}\right ) - x, -2 \, \sqrt {-\frac {d}{e}} \arctan \left (\frac {e x \sqrt {-\frac {d}{e}}}{d}\right ) - x\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.21, size = 118, normalized size = 4.07 \begin {gather*} \frac {{\left ({\left (d^{2}\right )}^{\frac {1}{4}} d e^{\frac {7}{2}} - {\left (d^{2}\right )}^{\frac {1}{4}} {\left | d \right |} e^{\frac {7}{2}}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{{\left (d^{2}\right )}^{\frac {1}{4}}}\right ) e^{\left (-4\right )}}{d} + \frac {{\left ({\left (d^{2}\right )}^{\frac {1}{4}} d e^{\frac {11}{2}} + {\left (d^{2}\right )}^{\frac {3}{4}} e^{\frac {11}{2}}\right )} e^{\left (-6\right )} \log \left ({\left | {\left (d^{2}\right )}^{\frac {1}{4}} e^{\left (-\frac {1}{2}\right )} + x \right |}\right )}{2 \, d} - \frac {{\left ({\left (d^{2}\right )}^{\frac {1}{4}} d e^{\frac {7}{2}} + {\left (d^{2}\right )}^{\frac {1}{4}} {\left | d \right |} e^{\frac {7}{2}}\right )} e^{\left (-4\right )} \log \left ({\left | -{\left (d^{2}\right )}^{\frac {1}{4}} e^{\left (-\frac {1}{2}\right )} + x \right |}\right )}{2 \, d} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 22, normalized size = 0.76 \begin {gather*} \frac {2 d \arctanh \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.45, size = 36, normalized size = 1.24 \begin {gather*} -\frac {d \log \left (\frac {e x - \sqrt {d e}}{e x + \sqrt {d e}}\right )}{\sqrt {d e}} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.43, size = 21, normalized size = 0.72 \begin {gather*} \frac {2\,\sqrt {d}\,\mathrm {atanh}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )}{\sqrt {e}}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.18, size = 34, normalized size = 1.17 \begin {gather*} - x - \sqrt {\frac {d}{e}} \log {\left (x - \sqrt {\frac {d}{e}} \right )} + \sqrt {\frac {d}{e}} \log {\left (x + \sqrt {\frac {d}{e}} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________